#!bin/bash

now_date=`date "+%Y-%m-%d"`
success_flag=1
while [ $success_flag != 0 ]
do
  success_flag=`yarn application -appStates running -list | grep dim_frm_network_info_desc | wc -l`
  echo $success_flag
  if((success_flag==0));
    then break
  fi
  echo "running~~~"
  echo "============================"
  sleep 1m
done
echo "success~~~"